﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DistDataProcessor.Data
{

    public class MeasureDistanceData
    {
        public double Distance { get; set; }

        [Column("DeviceId")]
        public int Id { get; set; }

        public DateTime Time { get; set; }

        //工程编号,同remote_id
        public int PrjId { get; set; }
        //观测次数,累加,递增
        public int No { get; set; }

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("Id")]
        public int Guid { get; set; }//主键


        public MeasureDistanceData()
        {
            this.Time = DateTime.Now;
        }
    }
}
